搜索资源列表
HuWeiBianchengGuifanPeixunYulianxi
- 华为软件编程规范培训实例与练习 一、逻辑类代码问题 1、变量/指针在使用前就必须初始化 2、防止指针/数组操作越界... -Huawei software programming examples and exercises a standardized training, the logic class code problem 1, the variable/pointer must be initialized before use 2, to prevent the
templated_devices
- Solution for managing an array of devices ranged from 1 .. N and the array holding the devices ranged from 0 .. N-1. In this example we have a dictionary that receives string apply a hashing function on him that returns a class of indexes.
API
- unit Unit1 interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls type TForm1 = class(TForm) Button1: TButton Edit1: TEdit Button2: TButton procedure Button
matriz
- Class to instantiate an object array and maninula it. Ex: tst_matriz.php
order
- 用c++ 实现的用类的构造函数初始化数组,是一种新的思路,学习完后会对c++有新的认识-Using c++ implementation with the class constructor to initialize the array, is a new idea, learn c++ would have exhausted a new understanding of
xuhanshu
- 利用虚函数手段,按照3种不同的计算方法来求出Fibonacci数列的第n项(的具体项值)并输出。具体地说,可通过在基类baseCla及其派生类fib1Cla、fib2Cla和fib3Cla中说明如下的同一个虚函数“virtual double fib(int n) ”,来实现求Fibonacci数列第n项值并返回的3种不同求解方法。例如,可设计并使用已经在第4和第5章的练习中所实现的求解方法:简单变量“数据平移”法、使用数组的实现法以及使用递归函数的实现法。-The use of virtual
12
- 实验目的:熟悉并使用模板 实验内容: (1)程序清单12.1 -#include <iostream.h> template <class T> T average(T *array, int size) { T sum = 0 for (int count = 0 count < size ++count) sum+= array[count] return(sum/size) }
java
- java基础的PPT,包含源代码,对有关类.输入输出.界面设计.数组应用等作了详细介绍-java-based PPT, contains the source code for the class. input and output. interface design. array of applications are described in detail
Matrix
- Matrix类。该类包括矩阵行列数变量int rows和int cols,矩阵数据数组double data[][],构造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),获取某元素值的方法getData(int row,int col),设置某元素值的方法setData(int row,int col,double value),计算两个矩阵的乘积的方法multiply(Matrix m
class4-ctree
- 由一线性数组生成一个完全二叉树,使用类描述,有详细注释,完整的输入输出-By a linear array generates a complete binary tree, use the class descr iptions, detailed notes, a complete input and output
JpegDecoder
- JpegDecoder类主要用于Jpeg文件的解码。 使用方法十分简单,只需要利用GetJPEGBuffer函数返回解码后的像素数组。-JpegDecoder class is mainly used for the decoding of Jpeg files. Usage is very simple, only need to use GetJPEGBuffer function returns an array of pixels decoded.
UnReg
- Sample class to implement read/write registrity. Represents values as array: MyIntVar := MyReg.IntVal[ Value 1 ] MyStrVar := MyReg.StrVal[ Value 2 ] -Sample class to implement read/write registrity. Represents values as array:
clsProcess
- 进程操作的类,可以从进程名枚举进程PID,也可以从窗口标题查找,打开进程,读取长整型,写入长整型,读取字节数组,写入字节数组.压缩包内包含有一个破解示例,破解掉一个判断密码是否正确的程序(仅在内存中进行,不破坏原文件)-Process operations class, you can enumerate the process name from the process PID, you can search for the title from the window, open the pr
3
- /编写一个程序,输入N个学生数据,包括学号、姓名、成绩,要求输出这些学生数据并计算平均分。 //要求: //设计一个学生类Stud,除了包括no(学号)、name(姓名)和deg(成绩)数据成员外,有两个静态变量 // sum和num,分别存放总分和人数,另有两个普通成员函数setdata()和disp(),分别用于给数据成 // 员赋值和输出数据成员的值,另有一个静态成员函数avg(),它用于计算平均分。在main()函数中 // 定义了一个对象数组用于存储输入的学生
p03
- 1、编写并测试3×3矩阵转置函数,使用数组保存3×3矩阵 2、使用动态内存分配生成动态数组来重新完成上题,使用指针实现函数的功能。 3.写一个程序,定义基类车Vehicle,有Run,Stop等成员函数,由它派生出2个派生类:(自行车类)、(汽车类),从Bbicyce 、Motoracar派生出Motorcycle(摩托车类),它们都有Run,Stop等成员函数。注意虚函数的作用。 -1, to prepare and test the 3 × 3 matrix transpose
bbeee
- 定义并实现一个整数集合类int_set,集合类中cur_size表明当前集合中有几个整数,集合中最多含max_size个整数,存放集合元素的数组是动态的。要求提供的方法有: (1)增加一个整数到集合中; (2)从集合中去掉一个元素; (3)判断一个元素是否在集合中; (4)重载<<运算法,输入集合;重载>>运算符输出集合; (5)分别实现集合的交、并、差运算。 -Defined and implemented a se
Archive
- 编制一程序,要求键入一个班的学生成绩,并存放于50字的ERADE数组中,然后根据ERADE中的成绩,把学生名次填入50字的RANK数组中,再按学号顺序把名次从终端上显示出来-The preparation of a procedure that requires the type 1 class student achievement, and stored in 50-word ERADE array, and then ERADE in the performance of their st
queue
- 数据结构实现:队列(环形数组、链式实现)的基类实现。-Data structure implementation: queue (circular array, chain to achieve) is the base class implementation.
string
- 本源码为在vc++环境下编写的string类,该类既可 自动调节大小,又可限制数组越界,还重载了一些运算符-The source code in vc++ environment, prepared by the string class that can automatically adjust the size, but also an array of cross-border restrictions, but also a number of operator overloading
ClassroomsClass
- 写一个教室类,有学生/老师/网管 其中学生人数可以不同,但是开班以后,人数必须固定(数组) 老师只有一个,所有教室共享(static) 网管所有教室共享,并且不变. 要求实现代码以后,创建一个教室对象-Write a classroom class, a student/teacher/network management in which the number of students may be different, but the classes later, the